<template>
	<view class="content">
		<view class="info-item FZHZGBJ" @click="navigate('/page_other/registrations/form')">
			<view class="title FangZhengHanZhenGuangBiaoJianTi">16-24岁青年就业调查</view>
			<image v-if="award==1"
				src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-erq/award.png"
				class="award" mode="widthFix"></image>
		</view>
		<view class="info-item1 FZHZGBJ" @click="popup">
			<view class="title FangZhengHanZhenGuangBiaoJianTi">城镇零就业家庭调查</view>
			<image v-if="award==2"
				src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-erq/award.png"
				class="award" mode="widthFix"></image>
		</view>
		<view class="info-item2 FZHZGBJ" @click="popup">
			<view class="title FangZhengHanZhenGuangBiaoJianTi">2024届高校毕业生就业调查</view>
			<image v-if="award==2"
				src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-erq/award.png"
				class="award" mode="widthFix"></image>
		</view>
	</view>
</template>

<script>
	import {
		addModuleCount
	} from '@/api/policy.js';
	export default {
		data() {
			return {
				award: 1,
			}
		},
		methods: {
			navigate(url) {
				uni.navigateTo({
					url
				})
			},
			popup() {
				uni.showToast({
					title: '调查暂未开始',
					icon: 'none'
				})
			},
			getAddModuleCount() {
				addModuleCount({
					type: 2,
				}).then(data => {
					uni.hideLoading()
					this.form = data
				}).catch(() => {
					uni.hideLoading()
				})
			},
		},
		onLoad() {
			// this.getAddModuleCount()
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 100%;
		padding: 30rpx;

		.info-item {
			height: 240rpx;
			background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-erq/dc1.png') no-repeat center;
			background-size: 100% 100%;
			padding: 30rpx 30rpx 30rpx 30rpx;
			display: flex;
			flex-direction: column;
			justify-content: center;
			margin-bottom: 30rpx;
			position: relative;

			.title {
				color: #fff;
				font-size: 40rpx;
			}

			.award {
				position: absolute;
				top: 0;
				right: 0;
				width: 170rpx;
			}
		}

		.info-item1 {
			height: 240rpx;
			background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-erq/dc2.png') no-repeat center;
			background-size: 100% 100%;
			padding: 30rpx 30rpx 30rpx 30rpx;
			display: flex;
			flex-direction: column;
			justify-content: center;
			margin-bottom: 30rpx;
			position: relative;

			.title {
				color: #fff;
				font-size: 40rpx;
			}

			.award {
				position: absolute;
				top: 0;
				right: 0;
				width: 170rpx;
			}
		}

		.info-item2 {
			height: 240rpx;
			background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/jq-erq/dc3.png') no-repeat center;
			background-size: 100% 100%;
			padding: 30rpx 30rpx 30rpx 30rpx;
			display: flex;
			flex-direction: column;
			justify-content: center;
			margin-bottom: 30rpx;
			position: relative;

			.title {
				color: #fff;
				font-size: 40rpx;
			}

			.award {
				position: absolute;
				top: 0;
				right: 0;
				width: 170rpx;
			}
		}
	}
</style>